package LifeGame11;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

import java.util.Scanner;

public class Main {
    @SuppressFBWarnings("DM_DEFAULT_ENCODING")
    public static void main(String args[]) {
        System.out.println("请输入边界的长度");
        Scanner a = new Scanner(System.in);
        try {
            int length = a.nextInt();
            System.out.println("请输入边界的宽度");
            int width = a.nextInt();
            Cell cell = new Cell(length,width);
            System.out.println("请输入逐代演变的时间");
            int time = a.nextInt();
            Timer timer = new Timer(time);
            Frame frame = new Frame("生命游戏");
            frame.initGUI(cell.getMaxLength(),cell.getMaxWidth(),timer);
        }catch (Exception e){
            e.printStackTrace();
        }


    }
}
